<script>
import LoginVue from './components/Login.vue'
export default{
  components:{LoginVue},
  data:()=>({
    login_vue:null
  }),
  methods:{
    showSonData(){
      console.log(this.login_vue.account);
      console.log(this.login_vue.password);
      this.login_vue.toLogin()
    }
  },
  mounted(){
    this.login_vue=this.$refs.loginView

  }
}
</script>

<template>
  
  <h3>登录界面</h3>
  <hr>
  <LoginVue ref="loginView"></LoginVue>
  <hr>
  <input type="button" value="查看" @click="showSonData">
</template>

<style scoped>

</style>
